package com.neusoft.SPNursingHome.po;
import com.baomidou.mybatisplus.annotation.*;

import java.io.Serializable;
import java.time.LocalDate;
import java.util.Date;

@TableName("client")
public class Client implements Serializable {
    // 客户端ID（主键）
    @TableId(value = "client_id", type = IdType.AUTO)
    private Integer clientId;
//      客户类型 (自理, 护理)
    private String clientType;
//      姓名
    private String clientName;
//      年龄
    private Integer clientAge;
//      出生日期
    private Date dateOfBirth;
//      性别
    private String clientGender;
//      身份证号
    private String clientCardNumber;
//      血型
    private String bloodType;
//      家属
    private String familyMember;
//      电话
    private String clientPhone;
//      护理级别ID (外键)
    private Integer careLevelId;
//      床位ID (外键)
    private Integer bedId;
    @TableField("care_admin_id")
    private Integer adId; // 护理管家ID (外键)
    private Integer clientStatus; // 客户状态 (1: 正常, 0: 已删除/隐藏)

    private Integer careAdminId;
    // 构造函数
    public Client() {
    }

    // Getters 和 Setters
    public Integer getClientId() { return clientId; }
    public void setClientId(Integer clientId) { this.clientId = clientId; }
    public String getClientType() { return clientType; }
    public void setClientType(String clientType) { this.clientType = clientType; }
    public String getClientName() { return clientName; }
    public void setClientName(String clientName) { this.clientName = clientName; }
    public Integer getClientAge() { return clientAge; }
    public void setClientAge(Integer clientAge) { this.clientAge = clientAge; }
    public Date getDateOfBirth() { return dateOfBirth; }
    public void setDateOfBirth(Date dateOfBirth) { this.dateOfBirth = dateOfBirth; }
    public String getClientGender() { return clientGender; }
    public void setClientGender(String clientGender) { this.clientGender = clientGender; }
    public String getClientCardNumber() { return clientCardNumber; }
    public void setClientCardNumber(String clientCardNumber) { this.clientCardNumber = clientCardNumber; }
    public String getBloodType() { return bloodType; }
    public void setBloodType(String bloodType) { this.bloodType = bloodType; }
    public String getFamilyMember() { return familyMember; }
    public void setFamilyMember(String familyMember) { this.familyMember = familyMember; }
    public String getClientPhone() { return clientPhone; }
    public void setClientPhone(String clientPhone) { this.clientPhone = clientPhone; }
    public Integer getCareLevelId() { return careLevelId; }
    public void setCareLevelId(Integer careLevelId) { this.careLevelId = careLevelId; }
    public Integer getBedId() { return bedId; }
    public void setBedId(Integer bedId) { this.bedId = bedId; }

    public Integer getAdId() {return adId;}
    public void setAdId(Integer adId) {this.adId = adId;}
    public Integer getClientStatus() {return clientStatus;}
    public void setClientStatus(Integer clientStatus) {this.clientStatus = clientStatus;}

    public Integer getCareAdminId() {
        return careAdminId;
    }

    public void setCareAdminId(Integer careAdminId) {
        this.careAdminId = careAdminId;
    }

    @Override
    public String toString() {
        return "Client{" +
                "clientId=" + clientId +
                ", clientType='" + clientType + '\'' +
                ", clientName='" + clientName + '\'' +
                ", clientAge=" + clientAge +
                ", dateOfBirth=" + dateOfBirth +
                ", clientGender='" + clientGender + '\'' +
                ", clientCardNumber='" + clientCardNumber + '\'' +
                ", bloodType='" + bloodType + '\'' +
                ", familyMember='" + familyMember + '\'' +
                ", clientPhone='" + clientPhone + '\'' +
                ", careLevelId=" + careLevelId +
                ", bedId=" + bedId +
                ", adId=" + adId +
                ", clientStatus=" + clientStatus +
                ", careAdminId=" + careAdminId +
                '}';
    }
}